﻿using Newtonsoft.Json;

namespace Yz.Core.Extensions
{
    public static class JsonExtension
    {

        public static string ToJson(this object obj)
        {
            return JsonConvert.SerializeObject(obj);
        }

    }
}
